package com.epam.matchers;

import java.util.ArrayList;
import java.util.List;

import com.epam.resources.Resources;
import com.epam.text_elements.Sentence;

public class SentenceSplitter {
	private static final String REGEX=Resources.getString("SentenceSplitterRegex");
	
	public List<Sentence> getListOfSentences(String srcString) {
		String[] stringArray=srcString.split(REGEX);
		int size=stringArray.length;
		List<Sentence> res=new ArrayList<Sentence>();
		for (int i=0;i<size;i++) {
			res.add(new Sentence(stringArray[i]));
		}
		return res;
	}
	
}
